<!DOCTYPE html>
<html>

<head>
    <include file="public@head" title="添加管理员-系统设置"/>
</head>

<body class="layui-layout-admin">
<include file="public@header"/>
<include file="public@side"/>
<div class="layui-body">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a href="{:url('admin/index/index')}">主页</a>
        <a href="">系统设置</a>
        <a href="{:url('admin/admin/index')}">管理员列表</a>
        <a><cite>添加管理员</cite></a>
    </div>

    <div class="layui-fluid mgt10">
        <div class="layui-card">
            <div class="layui-card-header">
                添加管理员
            </div>
            <div class="layui-card-body">
                <form method="post" action="{:url('add')}" class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">登录账号<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="admin_login" lay-verify="required"
                                   lay-verType="tips" placeholder="登录账号">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">昵称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input" name="nick_name" placeholder="请输入真实姓名">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">电话</label>
                        <div class="layui-input-inline">
                            <input type="tel" class="layui-input" name="mobile" placeholder="请输入电话">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">邮箱</label>
                        <div class="layui-input-inline">
                            <input type="email" class="layui-input" name="email" lay-verify="email" lay-verType="tips"
                                   placeholder="请输入邮箱">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">身份<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <select name="group_id">
                                <option value="">——请选择角色——</option>
                                <volist name="roles" id="val">
                                    <option value="{$val.id}">{$val.title}</option>
                                </volist>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">密码<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="password" class="layui-input" name="login_pass" lay-verify="required"
                                   lay-verType="tips" placeholder="请输入密码">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">确认密码<span class="form-required">*</span></label>
                        <div class="layui-input-inline">
                            <input type="password" class="layui-input" name="upass" lay-verify="required"
                                   lay-verType="tips" placeholder="请输入确认密码">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">是否启用<span class="form-required"></span></label>
                        <div class="layui-input-block">
                            <input type="radio" class="layui-input" name="status" title="是" value="1" checked="checked">
                            <input type="radio" class="layui-input" name="status" value="0" title="否">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn" lay-submit lay-filter="general">添加</button>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">返回</a>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<include file="public@scripts"/>
</body>

</html>
